package com.starmark.gateway.project.provider.service;


import com.starmark.core.framework.base.BaseService;
import com.starmark.gateway.project.provider.entity.GatewayRoute;
import com.starmark.gateway.project.provider.vo.GatewayAppVo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author starmark
 * @since 2020-03-17
 */
public interface IGatewayRouteService extends BaseService<GatewayRoute> {

    /**
     * 删除应用下的全部路由
     * @param appId 应用ID
     */
    void deleteRouteByAppId(String appId);

    /**
     * 创建路由数据
     * @param gatewayApp 应用名称
     */
    void  createGatewayRoute(GatewayAppVo gatewayApp);





    /**
     * 重新加载网关路由配置资源到redis
     */
    void overload();
}
